﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TreeListView.WPF.Model;

namespace TreeListView.WPF.DataProvider
{
    public class FakeFactory
    {
        public static IEnumerable<DocumentItem> GetDocumentItems()
        {
            List<DocumentItem> ls = new List<DocumentItem>();

            DocumentItem item1 = new DocumentItem { ID = Guid.NewGuid(), Number = 1 };
            DocumentItem item2 = new DocumentItem { ID = Guid.NewGuid(), Number = 2 };
            DocumentItem item3 = new DocumentItem { ID = Guid.NewGuid(), Number = 3 };

            DocumentItem item11 = new DocumentItem { ID = Guid.NewGuid(), ParentID = item1.ID, Number = 1 };
            DocumentItem item21 = new DocumentItem { ID = Guid.NewGuid(), ParentID = item2.ID, Number = 1 };
            DocumentItem item22 = new DocumentItem { ID = Guid.NewGuid(), ParentID = item2.ID, Number = 2 };

            DocumentItem item31 = new DocumentItem { ID = Guid.NewGuid(), ParentID = item3.ID, Number = 1 };
            DocumentItem item33 = new DocumentItem { ID = Guid.NewGuid(), ParentID = item3.ID, Number = 3 };
            DocumentItem item32 = new DocumentItem { ID = Guid.NewGuid(), ParentID = item3.ID, Number = 2 };

            DocumentItem item311 = new DocumentItem { ID = Guid.NewGuid(), ParentID = item31.ID, Number = 1 };
            DocumentItem item312 = new DocumentItem { ID = Guid.NewGuid(), ParentID = item31.ID, Number = 2 };

            ls.Add(item1);
            ls.Add(item2);
            ls.Add(item3);
            ls.Add(item11);
            ls.Add(item21);
            ls.Add(item22);

            ls.Add(item31);
            ls.Add(item32);
            ls.Add(item33);

            ls.Add(item311);
            ls.Add(item312);

            return ls;

        }
    }
}
